
<ul class="nav">
    <li>编辑商品</li>
</ul>
<div class="table_shop">
    <table>
        <form action="__URL__/edit_shopsave" method="post" enctype="multipart/form-data">
            <tr>
                <td class="product">商品编号：</td>
                <td class="product_content"><input type="text" name="product_num" value="{$list.product_num}"><input
                        type="hidden" name="id" value="{$list.id}"></td>
            </tr>
            <tr>
                <td class="product">商品名称：</td>
                <td  class="product_content"><input type="text" name="product_name" value="{$list.product_name}"></td>
            </tr>
                <td class="product">商品信息：</td>
                <td class="product_content"><input type="text" name="product_info" value="{$list.product_info}"></td>
            </tr>
            <tr>
                <td class="product">商品图片：</td>
                <td  class="product_content">
                    <img width="130px" height="130px" src="__UPLOAD__/{$list.image}" alt="">
                    <input style="border: none" type="file" name="img">

                </td>
            </tr>
            <tr>
                <td class="product">商品分类：</td>
                <td  class="product_content" name="class_id">{$list.product_content}
                    <input type="text" value="{$list.class_id}" id="num">
                    <select id="select" name="class_id">
                    <option>请选择</option>
                    <option value="1">手机类</option>
                    <option value="2">电脑平板类</option>
                    <option value="3">穿戴类</option>
                    <option value="4">智能家居类</option>
                    <option value="5">配件</option>
                </select>
                </td>

            </tr>
            <script>
                 var num =$("#num").val();
                $("#select option[value='num']").attr('selected','selected');
            </script>
            <tr>
                <td class="product">商品数量：</td>
                <td class="product_content"><input type="text" name="product_count" value="{$list.product_count}"></td>
            </tr>
            <tr>
                <td class="product">商品原价：</td>
                <td class="product_content"><input type="text" name="original_price" value="{$list.original_price}">
                </td>
            </tr>
            <tr>
                <td class="product">商品现价：</td>
                <td class="product_content"><input type="text" name="current_price" value="{$list.current_price}"></td>
            </tr>
            <tr>

                <td  class="product_sub" colspan="2"><input type="submit" class="sub" value="保存"></td>

            </tr>
        </form>
    </table>
</div>
